package Tarea5arraylist;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class ClaFrame extends JFrame {
	private Motor motor;
	private ClaPanel cPanel;
	
	public ClaFrame(Motor motor){
		super("Serie de Imagenes");
		this.motor = motor;
		this.setLayout(null);
		this.setSize(600, 600);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		cPanel = new ClaPanel(motor);
		this.add(cPanel);
		this.addMouseListener(cPanel);
		this.setVisible(true);
	}
	
	public ClaPanel obtienePanel(){
		return cPanel;
	}

}
